<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.st.mall.user.model.UserModel"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%@ include file="/web/header.jsp" %>
<title>信息维护</title>
</head>
<body>
	<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">商城后端数据维护</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left"></ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="/B2CMall/web/base/image/tushanyaya.jpg" class="layui-nav-img">
          <%-- <img src="/temp/${user.image }" class="layui-nav-img"> --%>
          	用户[${user.name}]
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">修改资料</a></dd>
          <dd><a href="">修改密码</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="javascript:toLogout();">注销</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          
        <li class="layui-nav-item">
          <a href="javascript:;">系统信息</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:openUrl('/web/sys/user/list.jsp');">用户信息维护</a></dd>
            <dd><a href="javascript:openUrl('/web/sys/address/list.jsp');">收货地址信息维护</a></dd>
          </dl>
        </li>
        
        <li class="layui-nav-item">
          <a href="javascript:;">商品信息</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:openUrl('/web/product/info/list.jsp');">商品信息维护</a></dd>
            <dd><a href="javascript:openUrl('/web/product/cate/list.jsp');">商品分类信息维护</a></dd> 
            <dd><a href="javascript:openUrl('/web/product/info/img.jsp');">商品图片信息维护</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">订单信息</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:openUrl('/web/order/info/list.jsp');">订单信息维护</a></dd>
            <dd><a href="javascript:openUrl('/web/order/pro/list.jsp');">订单商品信息维护</a></dd>
          </dl>
        </li>
        
      </ul>
    </div>
  </div>
  
  <div class="layui-body">   <!-- 内容主体区域 -->
    <iframe name='frameA' width='99%' height='98%'></iframe>
  </div>
  
  <div class="layui-footer"> <!-- 底部固定区域 -->  
  
  </div>
</div>
<script type="text/javascript">
	$('.demoA').click(function(){	// 动态绑定
		window.open(base.app+$(this).data('url'),'frameA')
	})
	
	function openUrl(url){	// 静态绑定
		window.open(base.app+url,'frameA')
	}
	function toLogout(){
		openConfirm(function(index){
			ajax({},'/user/userOut.do','text',function(data){
				toJsp('/web/front/login.jsp')
			})
		},"是否进行注销？")
	}
	
	element.render();
</script>

</body>
</html>